package com.windgo.bean.bo.wxgoods;

import com.windgo.bean.MarketCategory;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wuwen
 * @since 2022/10/16
 * 09:09
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class GoodsWxListVo {
    //首先是总数据量
    private Integer total;
    //总的页码数
    private Integer pages;
    //当前页最多的数据量
    private Integer limit;
    //当前页的页码
    private Integer page;
    private List<WxCategoryGoodsVo> list;
    private List<MarketCategory> filterCategoryList;
    public static GoodsWxListVo data(long total,Integer pages,Integer limit,Integer page,List list,List filterCategoryList){
        GoodsWxListVo goodsWxListVo = new GoodsWxListVo();
        goodsWxListVo.setTotal((int)total);
        goodsWxListVo.setPages(pages);
        goodsWxListVo.setPage(page);
        goodsWxListVo.setLimit(limit);
        goodsWxListVo.setList(list);
        goodsWxListVo.setFilterCategoryList(filterCategoryList);
        return goodsWxListVo;
    }
}

